package com.ymtms.applicationsystem.dao;

import com.ymtms.applicationsystem.pojo.Emp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface EmpMapper {
    int deleteByPrimaryKey(Integer eiid);

    int insert(Emp record);

    int insertSelective(Emp record);

    Emp selectByPrimaryKey(Integer eiid);

    int updateByPrimaryKeySelective(Emp record);

    int updateByPrimaryKey(Emp record);

    List<Emp> selectEmpGetAll(@Param("empSeekInfo") String empSeekInfo);

    @Update("update emp_information set flag = 1  where eiid = #{empid} ")
    int empDelSoft(int empid);
}